package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.LiftEntity;
import com.dragon.modules.yuegou.enums.member.LiftType;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 会员升降表(升降配置)模型类
 * 
 * @author pbuilder generated
 * @date 2019-03-16 15:13:13
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Lift extends LiftEntity {

	@ApiModelProperty("会员等级升降规则条件")
	private List<LiftConditions> liftConditionsList;
	
	@ApiModelProperty("商圈下等级")
	private Integer count;
	
	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public List<LiftConditions> getLiftConditionsList() {
		return liftConditionsList;
	}

	public void setLiftConditionsList(List<LiftConditions> liftConditionsList) {
		this.liftConditionsList = liftConditionsList;
	}

	/**
	 * 构造一个空会员升降表(升降配置)模型对象
	 */
	public Lift(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员升降表(升降配置)模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Lift(LiftEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员升降表(升降配置)模型对象
	 * 
	 * @param other 其它对象
	 */
	public Lift(Lift other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public Lift id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置
	 * 
	 * @param busdId 
	 * @return 当前对象
	 */
    public Lift busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public LiftType getType() {
    	return type;
    }

    /**
	 * 设置[枚举]升降类型：1-升级规则-UPGRADE、2-降级规则-DEMOTION
	 * 
	 * @param type [枚举]升降类型：1-升级规则-UPGRADE、2-降级规则-DEMOTION
	 * @return 当前对象
	 */
    public Lift type(LiftType type) {
    	this.type = type;
    	return this;
    }

	@Override
	public String getLevelId() {
    	return levelId;
    }

    /**
	 * 设置等级id
	 * 
	 * @param levelId 等级id
	 * @return 当前对象
	 */
    public Lift levelId(String levelId) {
    	this.levelId = levelId;
    	return this;
    }

	@Override
	public Integer getSerialNumber() {
    	return serialNumber;
    }

    /**
	 * 设置
	 * 
	 * @param serialNumber 
	 * @return 当前对象
	 */
    public Lift serialNumber(Integer serialNumber) {
    	this.serialNumber = serialNumber;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public Lift createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 * 
	 * @param createdBy 
	 * @return 当前对象
	 */
    public Lift createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public Lift modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedBy 
	 * @return 当前对象
	 */
    public Lift modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public Lift del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 * 
	 * @param delBy 
	 * @return 当前对象
	 */
    public Lift delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 * 
	 * @param delTime 
	 * @return 当前对象
	 */
    public Lift delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }

}
